
import * as PIXI from 'pixi.js'
import { connect } from './net'
import {  WidgetManager } from './core'
import './widget'
import App from '@/core/app'

new App({
    width: 750,
    height: 1334
})
    .loadConfig('static/game.json')
    .then(() => {
        WidgetManager.open('Main')
    })

// connect({
//     host: '127.0.0.1',
//     port: '3010',
//     onConnect(pomelo) {
//         pomelo.request("connector.entryHandler.entry", "hello pomelo", function (data) {
//             console.log(data.msg)
//         });
//     }
// })

